vim.cmd([[

noremap <silent> <F2> :Vista!!<CR>

" How each level is indented and what to prepend.
" This could make the display more compact or more spacious.
" e.g., more compact: ["▸ ", ""]
" Note: this option only works for the kind renderer, not the tree renderer.
""let g:vista_icon_indent = ["╰─▸ ", "├─▸ "]

" Executive used when opening vista sidebar without specifying it.
" See all the avaliable executives via `:echo g:vista#executives`.
let g:vista_default_executive = 'nvim_lsp'

" Declare the command including the executable and options used to generate ctags output
" for some certain filetypes.The file path will be appened to your custom command.
" For example:
let g:vista_ctags_cmd = {
      \ 'cpp': 'ctags --extras=+F -f - --format=2 --excmd=pattern --fields=nksSafet --sort=no --append=no --language-force=c++ --c++-kinds=hdpgetncsufmv',
      \ }
let g:vista_executive_for = {
      \ 'cpp': 'ctags',
      \ }

" To enable fzf's preview window set g:vista_fzf_preview.
" The elements of g:vista_fzf_preview will be passed as arguments to fzf#vim#with_preview()
" For example:
let g:vista_fzf_preview = ['right:50%']"

" Ensure you have installed some decent font to show these pretty symbols, then you can enable icon for the kind.
let g:vista#renderer#enable_icon = 1

" The default icons can't be suitable for all the filetypes, you can extend it as you wish.

let g:vista_sidebar_position = 'vertical topleft'

let g:vista#executive#ctags#support_json_format = 1

""let g:vista_ignore_kinds = ['Namespace', 'Class']

let g:vista#render#ctags = 'default'
let g:vista#renderer#ctags = 'default'
let g:vista#renderer#default#vlnum_offset = 3

let g:vista#renderer#enable_kind = 1

]])
